package tt.lab.pmbok.dto;

import java.util.ArrayList;
import java.util.List;

public class ProcessDTO {
	private int id;
	private String name;
	private String pmbokId;
	
	private List<ToolDTO> tools = new ArrayList<ToolDTO>();
	private List<InoutDTO> inputs = new ArrayList<InoutDTO>();
	private List<InoutDTO> outputs = new ArrayList<InoutDTO>();

	public ProcessDTO(int id, String name, String pmbokId) {
		this.id = id;
		this.name = name;
		this.pmbokId = pmbokId;
	}

	public int getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public String getDisplayName(){
		return this.getPmbokId() +" " +this.getName();
	}
	public List<ToolDTO> getTools() {
		return tools;
	}

	public List<InoutDTO> getInputs() {
		return inputs;
	}

	public List<InoutDTO> getOutputs() {
		return outputs;
	}

	public void setId(int id) {
		this.id = id;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setTools(List<ToolDTO> tools) {
		this.tools = tools;
	}

	public void setInputs(List<InoutDTO> inputs) {
		this.inputs = inputs;
	}

	public void setOutputs(List<InoutDTO> outputs) {
		this.outputs = outputs;
	}

	public void addInput(InoutDTO inputDTO) {
		this.getInputs().add(inputDTO);
	}

	public void addOutput(InoutDTO outputDTO) {
		this.getOutputs().add(outputDTO);
	}

	public void addTool(ToolDTO toolDTO) {
		this.getTools().add(toolDTO);
	}

	public String getPmbokId() {
		return pmbokId;
	}

	public void setPmbokId(String pmbokId) {
		this.pmbokId = pmbokId;
	}

}
